import { createBrowserRouter } from 'react-router-dom'
import Login from '../page/Login'
import Article from '../page/Article'
import Layout from '../page/Layout'
import Board from '../page/Board'
import About from '../page/About'
import App from '../App'

const router = createBrowserRouter([
    {
        path: "/",
        element: <Layout />,
        children: [
            {
                path: "board",
                element: <Board />
            },
            {
                path: "about",
                element: <About />
            }
        ]
    },
    {
        path: "/login",
        element: <Login />
    },
    {
        path: "/article/:id",
        element: <Article />
    },
    {
        path: "/meituan",
        element: <App />
    },
])

export default router